package com.zhang.communication.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 聊天列表
 * </p>
 *
 * @author 创世神
 * @since 2024-06-12
 */
@Getter
@Setter
@TableName("chat_friends")
public class ChatFriends implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Long userId;

    /**
     * 对方的id
     */
    @TableField("friend_id")
    private Long friendId;

    /**
     * 对方是否在线
     */
    @TableField("is_online")
    private Integer isOnline;

    /**
     * 状态（0：待处理，1已同意，2已拒绝—）
     */
    @TableField("status")
    private Integer status;

    @TableField("create_time")
    private LocalDateTime createTime;
}
